<script>
    function goBack(){
    window.history.back()
    }
</script>
<div class="container-fluid">
  <div>
    <h3 style="color:#8C525B;border-bottom:1px solid #F1F1F1;padding-bottom:10px;padding-left:10px;">客户状态</h3>
  </div>
  <div class="panel panel-default">
    <div class=" panel-heading">
      <p class="panel-title" style="height:35px;line-height:35px">
      客户添加
      </p>
    </div >
    <form action="cstat.php?action=<?php if(isset($res)){
      echo 'update_check&cstat_id='.$cstat_id;
      }else{echo 'add_check';}?>" method="post" class="form-horizontal" style="margin-top:20px;">
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">客户状态</label>
        <div class="col-sm-9">
          <input name="stat" type="text" class="form-control" id="inputEmail3"  required="required" value=" <?php if(isset($res)){
          echo $res['cstat_stat'];
          }?>">
        </div>
      </div>
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">客户描述</label>
        <div class="col-sm-9">
          <input name="info" type="text" class="form-control" id="inputEmail3" required="required" value=" <?php if(isset($res)){
          echo $res['cstat_info'];
          }?>">
        </div>
      </div>
      <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
          <button class="btn btn-primary" id="submit_btn" type="submit">提交</button>
          <button class="btn btn-info" type="reset">重置</button>
          <a class="btn btn-default" onclick="goBack()">返回</a>
        </div>
      </div>
    </form>
  </div>
</div>